<style>
  body {
  overflow: hidden;
  margin: 0px;
  padding: 0px;
  background: white;
  }
  div:first-child {
  margin-top: 0px;
  }

  div {
  text-align: center;
  padding: 1px 3px;
  font-family: sans-serif;
  font-size: 0.8em;
  width: 480px;
  margin-top: 1px;
  }
  .action:hover{
  border: 1px solid red;
  background: #aaaaaa;
  cursor: hand;
  }

</style>

<script>
function collectData(){
	tables = getElementsByTagName("table")
	alert(tables[0].innerHTML);	
}
function getSalesVolume(){
    chrome.tabs.executeScript(null,{file:"salesvolume.js"});
    //chrome.tabs.executeScript(null,{code:"document.body.bgColor='red'"});
    window.close()
}

function cloneStatusTable(){
    st = document.getElementById("Store0")
    st1 = st.cloneNode (true)
    container = document.getElementById("status")
    container.appendChild(st1)
}

function getNickName(){
    chrome.tabs.executeScript(null,{file:"getStoreInfo.js"});
}

</script>
<body onload="getNickName()">
  <div>
    <table border="1" id="Store0">
      <tr>
        <th></th>
        <th>一</th>    <th>二</th>    <th>三</th>    <th>四</th>    <th>五</th>    <th>六</th>    <th>日</th>
        <th>一</th>    <th>二</th>    <th>三</th>    <th>四</th>    <th>五</th>    <th>六</th>    <th>日</th>
      </tr>
      <tr>
        <td onclick="getSalesVolume()" class="action">销售简报</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>

      <tr>
        <td>流量</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>  <td>  </td>   
      </tr>
      <tr>
        <td>首页被访数据</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>
      <tr>
        <td>宝贝被访汇总</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>
      <tr>
        <td>宝贝被访排行</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>
      <tr>
        <td>分类页面被访</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>
      <tr>
        <td>店内搜索关键字排行</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>
      <tr>
        <td>淘宝搜素关键字排行</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>
      <tr>
        <td>淘宝流量来源构成</td>
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>   
        <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>    <td></td>
      </tr>
    </table>
  </div>
</body>
